package com.ss.android.article.base.feature.detail2.picgroup.view;

import android.support.v4.view.ViewPager.OnPageChangeListener;

public final class c implements OnPageChangeListener {
    private final PictureDetailLayout a;

    public c(PictureDetailLayout arg1) {
        this.a = arg1;

    }

    public final void onPageScrollStateChanged(int state) {
    }

    public final void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
    }

    public final void onPageSelected(int position) {
        if(position != this.a.o) {
            this.a.o = position;
            this.a.a("slide_pic");
            this.a.a();
        }

        this.a.setPageVisibility(position);
        if(position < this.a.k && position > this.a.p) {
            this.a.p = position;
        }

        if(position == this.a.d.getCount() - 1) {
            this.a.g.r();
        }
    }
}

